#!/usr/bin/zsh

source "$HOME/.zgenom/zgenom.zsh"

if ! zgenom saved; then
    zgenom load https://github.com/zsh-users/zsh-syntax-highlighting
    zgenom load https://github.com/zsh-users/zsh-autosuggestions

    # zgenom load https://github.com/romkatv/powerlevel10k powerlevel10k
    # zgenom load https://github.com/cemsbr/asciigit asciigit
    zgenom load https://github.com/agkozak/polyglot

    zgenom ohmyzsh
    # zgenom ohmyzsh plugins/git
    # zgenom ohmyzsh themes/eastwood
    # zgenom ohmyzsh themes/wezm

    zgenom save
fi

# zsh-syntax-highlighting
# ZSH_HIGHLIGHT_HIGHLIGHTERS+=(brackets)

# colors
ZSH_HIGHLIGHT_STYLES[builtin]="fg=cyan,bold"
ZSH_HIGHLIGHT_STYLES[function]="fg=blue,bold"
ZSH_HIGHLIGHT_STYLES[command]="fg=green"
ZSH_HIGHLIGHT_STYLES[precommand]="fg=green,underline"
ZSH_HIGHLIGHT_STYLES[path]='fg=bold,underline'
ZSH_HIGHLIGHT_STYLES[reserved-word]="fg=yellow,bold"
ZSH_HIGHLIGHT_STYLES[alias]="fg=green,bold"
ZSH_HIGHLIGHT_STYLES[globbing]="fg=blue"
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]="bold"
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]="bold"
ZSH_HIGHLIGHT_STYLES[single-quoted-argument]="fg=yellow"
ZSH_HIGHLIGHT_STYLES[single-quoted-argument-unclosed]="fg=yellow"
ZSH_HIGHLIGHT_STYLES[double-quoted-argument]="fg=yellow,bold"
ZSH_HIGHLIGHT_STYLES[double-quoted-argument-unclosed]="fg=yellow,bold"
ZSH_HIGHLIGHT_STYLES[assign]="fg=magenta,bold"
ZSH_HIGHLIGHT_STYLES[redirection]="fg=magenta,bold"
ZSH_HIGHLIGHT_STYLES[commandseparator]="bold"

# headline
# HEADLINE_LINE_MODE="off"
#
source "$CFGHOME/zsh/aliases"
